<?php

namespace Admin\Form\Product;

use Zend\Form\Form;

class FormAddMaker extends Form{
    
    public function __construct() {
        
        parent::__construct();
        
        $this->setAttribute('name', 'frmAddMaker');
        
        $this->setAttribute('method', 'post');
        
        //for product maker name
        $this->add(array(
            'name' => 'product_maker_name',
            'type' => 'text',
            'attributes' => array(
                'class' => 'form-control'
            ),
            'options' => array(
                'label' => 'Tên hãng sản xuất',
                'label_attributes' => array(
                    'class' => 'col-sm-2 control-label'
                )
            )
        ));
        
        
        //for input hidden
        $this->add(array(
            'name' => 'action_type',
            'type' => 'hidden',
            'attributes' => array(
                'value' => 'add'
            )
        ));
        
        $this->add(array(
            'name' => 'product_maker_id',
            'type' => 'hidden',
        ));
        
        $this->add(array(
            'name' => 'save_maker',
            'type' => 'submit',
            'attributes' => array(
                'value' => 'Thêm',
                'class' => 'btn btn-default'
            )
        ));
    }
    
}
